package main1.r_ChainOfResponsibilityModel;

/**
 * Created by newtranx_011 on 2017/9/26.
 */
public class main1 {
    public static void main(String[] args) {
        Abc a1 = new Abc("a1");
        Abc a2 = new Abc("a2");
        Abc a3 = new Abc("a3");
        Abc a4 = new Abc("a4");

        a1.setA(a2);
        a2.setA(a3);
        a3.setA(a4);
        a1.o();
    }
}
